powered by
Codes that appear in the ANALYZE header are mapped to meaningful character strings.
convert.bitpix(bitpix = NULL)convert.datatype(datatype.code = NULL)convert.intent(intent.code = NULL)convert.form(form.code)convert.units(units, inverse = FALSE)convert.slice(slice.code)
convert.datatype(datatype.code = NULL)
convert.intent(intent.code = NULL)
convert.form(form.code)
convert.units(units, inverse = FALSE)
convert.slice(slice.code)
A character string.
is the bit-per-pixel code.
defines data type.
is the NIfTI intent code.
is the \((x,y,z)\) coordinate system.
is the units of pixdim[1..4].
is a logical value that denotes the direction of unit conversion.
is the slice timing order.
Brandon Whitcher bwhitcher@gmail.com
switch statements are used to map a numeric code to the appropriate string.
switch
Neuroimaging Informatics Technology Initiative (NIfTI) http://nifti.nimh.nih.gov/
## 4 = SIGNED_SHORT convert.datatype.anlz(4) ## 16 = FLOAT convert.datatype.anlz(16) ## 2 = "saggital unflipped" convert.orient.anlz(2) ## 4 = "coronal flipped" convert.orient.anlz(4)
Run the code above in your browser using DataLab